home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / gt_power / msr17.zip / MSROUTE.DOC next >
Text File  |  1990-06-04  |  14KB  |  266 lines

  1. MSRoute - Mark Shasby's Route Tracer
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3.     This program produces a "Route:" line in messages produced by yourself and
  4. updates any Route: lines passing through your system - hence providing a method
  5. of tracing the route taken by messages as they go through a GT network.
  6.  
  7. Example
  8. ~~~~~~~
  9.     If Oliver at 050/030 was to send a message to April at 004/005, the message
  10. would be created at Olivers board and the MSRoute program would insert a line...
  11.  
  12.   Route: 050/030 050/007
  13.  
  14. ...as Oliver's system knows that it is passing it on to 050/007.
  15. This is subject to change when new ideas arrive or whatever, it could possibly
  16. collect such details as delay times at each node or something - ideas welcome!
  17.  
  18.     Anyway, to continue with the story, the above Route: line, when it gets to
  19. 050/007 my system knows to pass it on to Andrew so will update the line to...
  20.  
  21.   Route: 050/030 050/007 050/022
  22.  
  23. ...then pass it on as normal.  Hopefully Andrew will be running this so his
  24. system will update it to...
  25.  
  26.   Route: 050/030 050/007 050/022 004/005
  27.  
  28. ...which is what April will see when she reads the message.
  29.  
  30. Day and Time notation
  31. ~~~~~~~~~~~~~~~~~~~~~
  32.     MSR10 introduces day & time notation to the Route: line, this is the first
  33. letter (or two) of the day of the week and the hour number appended to your
  34. net/node, for example...
  35.  
  36.   Route: 050/007m2 050/030
  37.  
  38. ...would signify a message that MSR first routed on Monday at 02:xx (time).
  39. Sometimes it is necessary to use two letters of the day name to differentiate
  40. between Saturday and Sunday, or Tuesday and Thursday.
  41.  
  42.     The use of this is to spot where a difference of one hour could delay your
  43. mail by a full day, for example...
  44.  
  45.   Route: 123/001 234/000 345/003
  46.  
  47. ...and...
  48.  
  49.   Route: 123/001 456/007 345/003
  50.  
  51. ...may be two working routes that look the same length, but with the timings
  52. included...
  53.  
  54.   Route 123/001m2 234/000m5 345/003tu4     (123/001 contacts 234/000 at 05:00)
  55.                                            (234/000 contacts 345/003 at 04:00
  56.                                             so the message got delayed until
  57.                                             tuesday morning)
  58.  
  59.   Route 123/001m2 456/007m3 345/003m4      (123/001 contacts 456/007 at about
  60.                                             03:00 so the message is available
  61.                                             at 456/007 for pickup by 345/003
  62.                                             during 345/003's calling time at
  63.                                             04:00 ON THE SAME DAY!)
  64.  
  65.     This is obviously a simplified example, in practice it could involve trial
  66. and error of a few different routes, and what happens one day may not be the
  67. norm, for example the late contact between 123/001 and 234/000 may have been
  68. because of several retries due to someone doing a one-off .FA of 200K or
  69. something!  Please don't start changing routings every day - that will make the
  70. network very unstable - this kind of tuning takes months and much careful
  71. monitoring - and remember to see if other nodes on the route agree with your
  72. findings before you start affecting their mail!
  73.  
  74. Where & when to run MSRoute
  75. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  76.     The MSRoute program is simply run after EVERY MBAGGER run, including when
  77. it is called from G_UNPAK.  There are no parameters required as of yet and no
  78. config file, but please remember to insert in every .BAT file you may have that
  79. currently calls MBAGGER.
  80.  
  81. Logging
  82. ~~~~~~~
  83.     MSRoute creates a MSROUTE.LOG in your GTPATH - this can grow quickly so if
  84. you are short of disk space you could erase/archive it or something in your
  85. nightly housekeeping.  It is worth trying to keep a day or two's log just in
  86. case it is required for queries or debugging.
  87.  
  88. MSRoute environment strings
  89. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  90.     There are two optional environment strings to allow your own placing of the
  91. MSROUTE.LOG and the MSROUTE.DAT files.  If these strings are not set MSRoute
  92. uses the GTPATH as in earlier releases.  As MSRoute can be called from several
  93. .BAT files in a complex system I chose environment variables so that changes
  94. can be made at a single point rather than digging through several .BAT files.
  95. An example of placing the log somewhere other than GTPATH...
  96.  
  97.     (In AUTOEXEC.BAT or wherever you set your environment strings...)
  98.  
  99.          SET MSRLOG=D:\JUNK
  100.  
  101. Help
  102. ~~~~
  103.     I will be glad to help in any way - please feel free to call Shasby's Lair
  104. on +44 772 561066 and page me between 0700 and 1530 on working days (GMT).  I
  105. would be very happy to receive a voice call during these times on +44 772 267912
  106. (ask for Mark) or ANY TIME WHATSOEVER on +44 706 830000.  That number is next to
  107. my bed so even the strange hours that people are awake in the US can get through
  108. to me on that - and I don't mind being woken up!
  109.  
  110. Whatware?
  111. ~~~~~~~~~
  112.     This program is shareware verging on freeware - I will accept any spare
  113. Ferrari F40s sent my way - and even money at a stretch - but feel no obligation
  114. to part with anything - the main thing is that a lot of people run this!
  115.  
  116. Modifications, new functions, bodges etc.
  117. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  118. <--date--> <tim> <-suggestor--> <v#> <------ brief description of change ------>
  119. 1989/12/19 10:55 Oliver Bell      2  Added route line info to MSROUTE.LOG (lives
  120.                                      in GTPATH).
  121.  
  122. 1989/12/19 14:23 Andrew Leeder    3  More specific check for word "Route:" than
  123.                                      before, doesn't match with message text!
  124.                                      Speeded up some too by ignoring downstream
  125.                                      echo bags until required.
  126.  
  127. 1989/12/22 10:53 Mark Shasby      4  Added MSROUTE.CTL file, this holds details
  128.                                      of bags already processed so it knows not
  129.                                      to process them on the next run - this
  130.                                      speeds up the run considerably.  If you
  131.                                      didn't like running this because of the
  132.                                      time taken - please try it now!  (The first
  133.                                      run of this version will scan all bags and
  134.                                      could take some time - successive runs will
  135.                                      be far faster)
  136.  
  137. 1989/12/22 12:28 Durk Ellison     5  Fixed run time error 2 at 0000:0218 which
  138.                                      occured when MSROUTE.CTL didn't exist.
  139.                  Gill Cobley         Now handles NET= and NODE= (SCHEDULE.BBS)
  140.                                      with less than 3 digits.
  141.  
  142. 1990/01/08 18:47 Mark Shasby      6  MSROUTE.CTL now obsolete, please delete
  143.                                      from your GTPATH - replaced by more human-
  144.                                      readable MSROUTE.DAT on the first run, I
  145.                                      would recommend running it now so it
  146.                                      doesn't impact tonight's more than
  147.                                      necessary!
  148.                  Perry Alexander     This new file now stores details of bags
  149.                                      within bags that have already been
  150.                                      processed - hence speeding up program
  151.                                      quite considerably.
  152.  
  153. 1990/01/10 14:25 Mark Shasby      7  Added duration and a few other stats to
  154.                                      the end of the report.  Gaps in routings
  155.                                      now indicated by "*/*".  Now realises when
  156.                                      routing from your node has changed, e.g.
  157.                                      if you erase a .DX and a bag flows as
  158.                                      normal.
  159.  
  160. 1990/01/23 10:31 Mark Shasby      8  Now tidies up work directories from
  161.                                      previous failure if necessary, also
  162.                                      displays message to that effect.  This
  163.                                      release also includes some code to allow
  164.                                      for future improvements in the information
  165.                                      on the Route: line, please pass on to as
  166.                                      many MSR users as possible - I can't
  167.                                      activate the new features until everyone
  168.                                      is using this release!
  169.  
  170. 1990/02/02 11:00 Cory Wright      9  Modified to take account of Cory's
  171.                                      encryption used in PowerVote! (still ß).
  172.  
  173. 1990/02/21 15:37 Mark Shasby     10  Day & hour appended to net/node on Route:
  174.                                      line the first time your MSR sees it.
  175.                                      This can give an indication of delays
  176.                                      between nodes and could show that two
  177.                                      routes that look the same length are
  178.                                      not the same timewise!
  179.  
  180.                                      *** THIS FORMAT WILL CAUSE ERRORS WITH MSR
  181.                                      RELEASES  BEFORE 8 - PLEASE INFORM  ANYONE
  182.                                      YOU  MAY KNOW USING MSR7 OR  EARLIER - SEE
  183.                                      UPDATE INFO FOR RELEASE  8  ABOVE  -  THEY
  184.                                      *HAVE* BEEN WARNED! ***
  185.  
  186.                                      (See "Day & Time Notation" section above -
  187.                                       but only if you don't get brane-fade too
  188.                                       easily <grin>)
  189.  
  190. 1990/02/23 12:20 Mark Shasby     11  Version 11 fixes a minor bug in the
  191.                                      MSROUTE.LOG.
  192.  
  193. 1990/03/05 10:25 Ken Isacson     12  Version 12 fixes a bug causing a hang
  194.                  Jim Rash            when an M*.* file was found in \MAILOUT,
  195.                                      now reports such a file and continues.
  196.  
  197. 1990/03/07 09:27 Ken Swenson     13  Environment strings "MSRLOG" and "MSRDAT"
  198.                                      added to allow sysop control over location
  199.                                      of MSR files.  Both optional and default
  200.                                      to GTPATH.
  201.                  Mark Shasby         I have introduced the code to suppress
  202.                                      leading zeros from net/node numbers, this
  203.                                      was necessary as Route: lines were
  204.                                      beginning to overflow one line regularly
  205.                                      and I don't want complaints from the
  206.                                      line conservationists!  Anyone running
  207.                                      MSR before release 10 could have problems.
  208.                                      Sorry but it had to be done!
  209.  
  210. 1990/03/15 09:47 Cory Wright     14  Runtime error 200 when all messages were
  211.                                      encrypted - fixed.
  212.                  Mark Shasby         Now reports files in bags that have been
  213.                                      scrambled by PKARC or PKZIP, a method used
  214.                                      by JD software.
  215.  
  216. 1990/03/28 09:23 Mark Shasby     15  Support for PKZIP 1.10 added.
  217.  
  218. 1990/05/08 07:22 Frank Sullivan  16  Fixed hangs caused by some encrypted bags,
  219.                                      very sorry about any hangs, especially
  220.                                      those hitting hubs!
  221.  
  222. 1990/06/04 15:07 Chris Smith     17  MSR now adds a Route: line to any message
  223.                                      it can, regardless of whether the
  224.                                      originating board was running MSR or not.
  225.                                      My original thoughts were that I had no
  226.                                      right to update messages without the
  227.                                      consent of the originator (given by the
  228.                                      originator adding the first Route: line).
  229.                                      However, as Chris convinced me, the Route:
  230.                                      line is just like a postmark added to all
  231.                                      mail to help the hubs to do their jobs
  232.                                      efficiently.  Sorry to anyone who disagrees
  233.                                      with this thinking - if you strongly
  234.                                      disagree please mail me and I will get an
  235.                                      idea of what the net as a whole wants.
  236.  
  237. Work In Progress
  238. ~~~~~~~~~~~~~~~~
  239.     If Route: lines are still so long that they overflow a line regularly, I
  240. have code available to only write out the Net number if it isn't the same as
  241. the previous Net on the line, for example...
  242.  
  243.     Route: 50/30 50/7 50/22 4/5 4/0 32/1
  244.  
  245.   ...would become...
  246.  
  247.     Route: 50/30 7 22 4/5 0 32/1
  248.  
  249.   ...What do you think of that notation to save a few more characters?
  250.  
  251.     Several people have asked why echo numbers (Exx/yyy) sometimes appear in
  252. the route line, this occurs when a board is passing an upstream echo bag onto
  253. the next node without putting it in a Gbag.  A solution would be for MSR to
  254. start reading the ROUTING.BBS, this would require a "/R:" parameter as used by
  255. Paul's netmail programs - do you think this may put people off running it?
  256.  
  257.     Also, further information could be obtained if MSR was also run before
  258. MDIST, as well as after MBAGGER as now.  I would obviously make this run as
  259. short as possible if people want it?  Extra functions would include better
  260. chance of plugging gaps caused by people not running MSR, and the Route: line
  261. could also have an indicator to say who sponsors an echo; a replacement for the
  262. existing SPONSOR: line but on the Route: line, hence saving lines in messages.
  263.  
  264.     If you have any thoughts on any of this please netmail me at 050/007,
  265. messages routed via Paul Meiners or John Cavanaugh hit me quickest.
  266.